package model

// HealthReport 健康报告数据结构
type HealthReport struct {
	UserID          int              `json:"user_id"`
	RecordCount     int              `json:"record_count"`
	TimeRange       TimeRange        `json:"time_range"`
	Temperature     TemperatureData  `json:"temperature"`
	HealthAdvice    []string         `json:"health_advice"`
	DetailedRecords []DetailedRecord `json:"detailed_records"`
	CreatedAt       string           `json:"created_at"`
}

// TimeRange 时间范围
type TimeRange struct {
	Earliest string `json:"earliest"`
	Latest   string `json:"latest"`
}

// TemperatureData 体温数据
type TemperatureData struct {
	Max   float64 `json:"max"`
	Min   float64 `json:"min"`
	Avg   float64 `json:"avg"`
	Unit  string  `json:"unit"`
	Trend string  `json:"trend"`
}

// DetailedRecord 详细记录
type DetailedRecord struct {
	RecordID       string  `json:"record_id"`
	DeviceID       int     `json:"device_id"`
	CollectionTime string  `json:"collection_time"`
	Temperature    float64 `json:"temperature"`
	Status         string  `json:"status"`
}
